package com.doraro.coal.moudle.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author doraro
 * @since 2019-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_organize")
@ApiModel(value="Organize对象", description="")
public class Organize implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "组织名字")
    private String name;

    @ApiModelProperty(value = "父组织id (集团的父组织为0)")
    private Long parentId;

    @ApiModelProperty(value = "组织类型(1-集团 2-分公司 3-电厂)")
    private Integer orgType;

    @ApiModelProperty(value = "公司地址")
    private String address;


}
